<template>
    <pre v-highlightjs="xml"><code class="xml"></code></pre>
</template>
<script>
export default {
  data() {
    return {
      xml: ""
    };
  },
  methods: {
    exportXML() {
      let canvas = this.$store.state.canvas;
      this.xml = canvas.toXML();
    }
  },
  mounted() {
    this.exportXML();
  }
};
</script>
